<?php

namespace App\Models\Admin;
use App\Models\Admin\Good;

use App\Models\BaseModel;

class OrderItem extends BaseModel
{
    protected $fillable = [
        'id', 'order_id', 'good_id', 'base_price',
        'pay_price', 'jf', 'good_title', 'good_logo', 'goods_quantity', 
        'created_at', 'updated_at'
    ];

    public function good(){
        return $this->hasOne('App\Models\Admin\Good', 'id', 'good_id');
    }
}
